package com.example.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {

    @GetMapping("/index")
    public String index(){
        return "Hello World-";
    }


    @GetMapping("/getUserInfo")
    public  String getUserInfo(){
        return "此次请求忽略拦截....";
    }

    @GetMapping("/home")
    public String home(){
        return "home";
    }



}
